<template>
  <div class="main">
    <div class="topbar bg-black py-2 px-3 d-flex ai-center">
      <img src="../assets/logo.png" height="30">
      <div class="pl-2 flex-1">
        <div class="text-white">王者荣耀</div>
        <div class="text-grey-1 fs-12">团队成就更多</div>
      </div>
      <button class="bg-primary btn">立即下载</button>
    </div>
    <div class="bg-primary pt-3 pb-2">
      <div class="nav d-flex jc-around text-white pt-1">
        <div class="nav-item active">
          <router-link to="/home" class="nav-link" tag="div">首页</router-link>
        </div>
        <div class="nav-item">
          <router-link to="/" class="nav-link" tag="div">攻略中心</router-link>
        </div>
        <div class="nav-item">
          <router-link to="/" class="nav-link" tag="div">赛事中心</router-link>
        </div>
      </div>
    </div>
    <router-view/>
  </div>
</template>

<script>

export default {
  data () {
    return {}
  }
}
</script>

<style lang="less" scoped>
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
}
</style>
